import request from "@/utils/request";
import type { CateVO } from "@/types/categoryType";
import type { Response } from "@/types/response";

enum ENUM {
   fetchCategoryAPI = "/category/top"
}

/**
 * @description 获取分类的接口
 * */
export const fetchCategoryAPI = (): Promise<Response<CateVO[]>> => request<CateVO[]>({
   url: ENUM.fetchCategoryAPI,
   method: "GET",
});